package com.zj.common.status;

//险种类型
public enum XzlxType {

	All("00000 ", "所有"), Older("10210 ", "养老"), Doctor("10212 ", "医疗");
	private String key;
	private String value;

	private XzlxType(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static XzlxType parse(String key) {
		XzlxType[] areas = XzlxType.values();
		for (XzlxType a : areas) {
			if (a.getKey().equals(key)) {
				return a;
			}
		}
		return null;
	}

	public static XzlxType parseValue(String value) {
		XzlxType[] areas = XzlxType.values();
		for (XzlxType a : areas) {
			if (a.getValue().equals(value)) {
				return a;
			}
		}
		return null;
	}

}
